import React, { Component } from 'react';
import {HashRouter as Router , Route, Link} from 'react-router-dom';
import About from './../route1/About';
import Main from './../route1/Main';
import Topic from './../route1/Topic';
import Home from './Home';
class IRouter extends Component {
    render() {
        return (
            <Router>
                <Home>
                    <Route path="/" exact component={Main}></Route>
                    <Route path="/about" component={About}></Route>
                    <Route path="/topic" component={Topic}></Route>
                </Home>
            </Router>
        );
    }
}

export default IRouter;